<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>publish发布页面</title>
    <!--自己的样式-->
    <link rel="stylesheet" type="text/css" href="css/backstage.css">
    <!-- Bootstrap -->
    <!--fileinput 样式-->
    <link rel="stylesheet" type="text/css" href="css/fileinput.css">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <!--动画CSS插件-->
    <link rel="stylesheet" type="text/css" href="css/animate.min.css" th:href="@{/css/animate.min.css}">
    <script src="js/jquery-3.2.1.min.js" th:src="@{/js/jquery-3.2.1.min.js}"></script>
    <script src="js/bootstrap.js" th:src="@{/js/bootstrap.js}"></script>
    <script src="js/fileinput.js" th:src="@{/js/fileinput.js}"></script>
    <script src="js/zh.js" th:src="@{/js/zh.js}"></script>
    <script src="js/html5shiv.js" th:src="@{/js/html5shiv.js}"></script>
    <script src="js/respond.min.js" th:src="@{/js/respond.min.js}"></script>
</head>
<body>
<!--顶部-->
<div th:replace="~{common/common::top2}"></div>
<!-- /.container-fluid -->

<!--侧边-->
<div class="container-fluid">
    <div class="row ">
        <div th:replace="~{common/common::side}">
        </div>


        <!-- 显示表格数据 -->

        <div class=" col-md-8 publish wow fadeInUp" id="right"><!-- 将数据appendTo tbody 定义id -->
            <form class="form-horizontal" th:action="@{/editGoods}"
                  method="post">
                <div class="item1">
                    <input type="text" th:id="id" th:name="id" th:value="${goods.id }" style="display:none">
                </div>
                    <div class="form-group">
                        <label class="col-sm-2">商品名称:</label>
                        <div class="col-sm-3">
                            <input th:value="${goods.getName()}" type="text" class="form-control" th:id="name"
                                   th:name="name">
                            <span class="help-block"></span></div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2">商品价格:</label>
                        <div class="col-sm-3">
                            <input th:value="${goods.getPrice()}" type="text" class="form-control" th:id="price"
                                   th:name="price">
                            <span class="help-block"></span></div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2">商品详情:</label>
                        <div class="col-sm-7">
                            <input th:value="${goods.getGdesc()}" type="text" class="form-control" th:id="gdesc"
                                   th:name="gdesc">
                            <span class="help-block"></span></div>
                    </div>


                    <!-- 发布人ID 隐藏-->

                    <br/>
                    <br/>
                    <button type="submit" class="btn btn-primary  col-sm-2 col-md-offset-2" id="expaddbtn">保存</button>

                    <button type="reset" class="btn btn-danger col-sm-2 " id="exp_delete_all_btn">重置</button>

            </form>
        </div>
    </div>
</div>
</div>
<script th:src="@{/js/wow.min.js}" src="js/wow.min.js"></script>
<script>
    $(function () {

        new WOW().init();
    })
</script>

</body>
</html>
